package net.sync.disruptor;

/**
 * 数据结构. https://blog.csdn.net/java1993666/article/details/72828010
 */
public class TradeTransactionEvent {
    //交易ID
    private String id;
    //交易金额
    private double price;

    public TradeTransactionEvent() {
    }

    public TradeTransactionEvent(String id, double price) {
        super();
        this.id = id;
        this.price = price;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public void setTradeTransaction(TradeTransactionEvent tradeTransaction){
        this.id = tradeTransaction.id;
        this.price = tradeTransaction.price;

    }
}
